#ifndef EVENTLOOPTHREAD_H
#define EVENTLOOPTHREAD_H

#include "Thread.h"
#include "EventLoop.h"
#include "Mutex.h"
#include "Condition.h"


class EventLoopThread {
public:
    EventLoopThread();
    ~EventLoopThread() = default;

    EventLoop* startLoop();

    void threadFunction();

private:
    Thread thread_;
    EventLoop* loop_;
    Mutex mutex_;
    Condition cond_;
};

#endif